diff options
| author | Adam Soltys <[email protected]> | 2024-09-25 13:59:21 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2024-09-25 13:59:21 -0700 |
| commit | 7c03500caa3c594a1aa284e9d533761f47ecc6bc (patch) | |
| tree | 4adabf6aa2df9b8ca629381932e240e97fc76854 /src/routes/(app)/[username] | |
| parent | 08f07a777c42c10b9ebf18727a4af45161b1800d (diff) | |
| download | coinos-ui-7c03500caa3c594a1aa284e9d533761f47ecc6bc.tar.gz coinos-ui-7c03500caa3c594a1aa284e9d533761f47ecc6bc.zip | |
move nwc string
Diffstat (limited to 'src/routes/(app)/[username]')
| -rw-r--r-- | src/routes/(app)/[username]/(profile)/+layout.svelte | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/src/routes/(app)/[username]/(profile)/+layout.svelte b/src/routes/(app)/[username]/(profile)/+layout.svelte index cd6a44a7..c6dc6569 100644 --- a/src/routes/(app)/[username]/(profile)/+layout.svelte +++ b/src/routes/(app)/[username]/(profile)/+layout.svelte @@ -6,10 +6,6 @@ import { sign, send } from "$lib/nostr"; import { bech32m } from "@scure/base"; import { page } from "$app/stores"; - import { - PUBLIC_COINOS_PUBKEY as pk, - PUBLIC_COINOS_RELAY as relay, - } from "$env/static/public"; export let data; @@ -27,12 +23,6 @@ $: lnaddr = `${stripped}@${$page.url.host}`; $: profile = `${$page.url.host}/${stripped}`; - $: nwc = - user && - `nostr+walletconnect://${pk}?relay=${encodeURIComponent(relay)}&secret=${ - user.nwc - }`; - let follow = async () => { user.follows.push(["p", subject.pubkey, "wss://nostr.coinos.io", stripped]); update(); @@ -174,27 +164,6 @@ </div> </div> </div> - {#if user.id === subject.id} - <div> - <div class="text-secondary">{$t("user.nwc")}</div> - <div class="flex gap-4"> - <div class="break-all grow text-xl"> - {nwc} - </div> - <div class="flex my-auto gap-1"> - <button class="my-auto" on:click={() => copy(nwc)} - ><Icon - icon="copy" - style="max-w-max w-8 min-w-[32px]" - /></button - > - <a href={`/qr/${encodeURIComponent(nwc)}`} class="my-auto"> - <Icon icon="qr" style="invert max-w-max min-w-[32px]" /> - </a> - </div> - </div> - </div> - {/if} </div> {/if} |
